<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
<head>
<title><?php global $page, $paged; wp_title(''); ?><?php if(wp_title('', false)) { echo ' - '; } ?><?php bloginfo('name'); if(is_home()) { echo ' - '; bloginfo('description'); } if ( $paged >= 2 || $page >= 2 ) echo ' | ' . sprintf( __( 'Page %s', 'oceania'), max( $paged, $page ) );?></title>

<!-- Webmasters Meta Code -->
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" >

<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
<link rel="shortcut icon" href="<?php echo get_stylesheet_directory_uri() ?>/images/favicon.ico" />
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />

<!-- WordPress Code  -->
<?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>
<?php wp_head(); ?>

</head>

<!-- Body Content-->
<body <?php echo body_class(); ?>>

<div id="container">

	<div id="topbar">

		<!-- User login and register code 
		
		<?php if ( is_user_logged_in() ) { ?>
		Welcome 
			
			<?php	
				
				global $current_user; 
				
				get_currentuserinfo();
				
				echo($current_user->user_firstname . " " . $current_user->user_lastname . ", ");
				
			?>
			
			<a href="<?php echo wp_logout_url(); ?>&redirect_to=/">Logout</a>
			
			<?php } else { ?>
			
			You are not logged in! <a href="/wp-login.php?redirect_to=/">Login</a> or <a href="/wp-login.php?action=register&redirect_to=/">register!</a>
			
			<?php } ?>.
		
		-->
		
		Check out the <a href="https://chrome.google.com/webstore/detail/ikakkbppgedldipklcdiacakdbdjgceg" target="_blank">Kreativ Theme Chrome App</a>. Thank you!
	
	</div>
	
	<div id="header">
	
		<div id="logo">
		
				<a href="<?php echo home_url(); ?>" title="<?php bloginfo('name'); ?>"><img src="<?php echo get_stylesheet_directory_uri() ?>/images/logo.png" alt="<?php bloginfo('name'); ?>" width="50" height="50"/></a>
			
		</div>
		
		<div id="title">
		
			<div id="name">
					
				<a href="<?php echo home_url(); ?>" title="<?php bloginfo('name'); ?> ~ <?php bloginfo('description'); ?>"><?php bloginfo('name'); ?></a>
				
			</div>
			
			<div id="description">
					
				<?php bloginfo('description'); ?>
				
			</div>

		</div>

		<div id="controls">
		
		<?php wp_nav_menu(); ?>
			
		</div>

	</div>

	<div class="center">
	
		<a href="http://www.kreativtheme.com/go/pagelines" title="Pagelines WordPress Theme Framework" target="_blank"><img border="0" src="http://www.kreativtheme.com/images/ads/Pagelines-WordPress-Theme-Framework.png" alt="Pagelines WordPress Theme Framework" width="728" height="90"/></a>
		
	</div>